if __name__ == '__main__':
    for i in range(4, -1, -1):
        # print(i)
        for _ in range(i):
            print(" ", end="")
        for _ in range(5):
            print("*", end="")
        print()